package com.lzs.adx.web.modules.adx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lzs.adx.commmon.service.impl.CrudServiceImpl;
import com.lzs.adx.web.modules.adx.dao.WphLimitDao;
import com.lzs.adx.web.modules.adx.dto.WphLimitDTO;
import com.lzs.adx.web.modules.adx.entity.WphLimitEntity;
import com.lzs.adx.web.modules.adx.service.WphLimitService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 唯品会最低金额限制
 *
 * @author wangzhijun 825400558@qq.com
 * @since 1.0.0 2025-02-20
 */
@Service
public class WphLimitServiceImpl extends CrudServiceImpl<WphLimitDao, WphLimitEntity, WphLimitDTO> implements WphLimitService {

    @Override
    public QueryWrapper<WphLimitEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<WphLimitEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}